#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>

void math_N(int input)
{
	int m_first = 0;
	int m_end = 0;
	int m = 0;
	m = pow(input, 3);

	m_first = (input - 1) * (input - 1) + (((input - 1) - 1) + 2);
	m_end = (input * input) + (input - 1);

	for (int i = 0; i < (input - 1); i++)
	{
		printf("%d+", m_first);
		m_first += 2;
	}
	printf("%d", m_end);
}

int main()
{
	int input = 0;
	scanf("%d", &input);

	math_N(input);

	return 0;
}